
import 'dart:async';
import '../utils/ApiService.dart';
import 'definitions/ResultMessageModelList.dart';
import 'definitions/HistoryMessageParams.dart';


class MessageController {

    static String historyUsingPostPath = "/api/message/history";
    /// 1. 获取历史消息
    static Future<ResultMessageModelList> historyUsingPost(HistoryMessageParams data,[ dynamic headers ]) async {
      var response = await ApiService.post("/api/message/history", data.toJson() , headers);
      return ResultMessageModelList()..fromJson(response.data);
    }
    
}